package com.yc.forum.Test;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class SanLianTest {
    public static void main(String[] args){
        JedisPool jp=new JedisPool();
        Jedis jedis=jp.getResource();
        String account="121314";
        String key1="like_"+account;
        String key2="collection_"+account;
        String key3="browse_"+account;
        for (int i = 0; i < 8; i++) {
            jedis.lpush(key1,""+(i));
            jedis.lpush(key2,""+(i*2));
            jedis.lpush(key3,""+(i*3));
//            jedis.lrem("like_121314",0,""+i);
//            jedis.lrem("collection_121314",0,""+i);
//            jedis.lrem("browse_121314",0,""+i);
        }
        System.out.println(jedis.lrange(key1,0,-1)+"q");
        System.out.println(jedis.lrange(key2,0,-1)+"w");
        System.out.println(jedis.lrange(key3,0,-1)+"e");
    }
}
